﻿using DBLibrary.DataBase;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Security.Claims;
using System.Text;
using System.Threading.Tasks;

namespace DBLibrary.Model.pojo
{
    [Serializable]
    public class HistoryDisplayData    //历史数据表
    {
        public event PropertyChangedEventHandler PropertyChanged = delegate { };
        private int stationId; //2
        private string stationName; //2-1
        private string name; //甲烷
        private string installPlace; //3号掘进面
        private int _SensorId;                      //[系统序号]
        private float _curValue;                    //[当前值]
        private DateTime _Time;                     //[时间]
        public int SensorId {
            get => _SensorId;
            set
            {
                _SensorId = value;
                if (PropertyChanged != null)
                {
                    PropertyChanged.Invoke(this, new PropertyChangedEventArgs("SensorId"));
                }
            }
        }
        public float CurValue {
            get => _curValue;
            set
            {
                _curValue = value;
                if (PropertyChanged != null)
                {
                    PropertyChanged.Invoke(this, new PropertyChangedEventArgs("CurValue"));
                }
            }
        }
        public DateTime Time {
            get => _Time;
            set
            {
                _Time = value;
                if (PropertyChanged != null)
                {
                    PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Time"));
                }
            }
        }

        public string StationName { get => stationName; set => stationName = value; }
        public string Name { get => name; set => name = value; }
        public string InstallPlace { get => installPlace; set => installPlace = value; }
        public int StationId { get => stationId; set => stationId = value; }
    }
}
